﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Core.Model;

namespace Core.Repository
{
    public interface INodeRepository<TEntity> : IRepository<TEntity>
        where TEntity : class,INode<TEntity>
    {
        TEntity GetParent(int parentId);

        IList<TEntity> GetChildren(int parentId);
    }
}
